<div style="text-align: center">
    <H2>留言一览</H2>
    <table border="1" style="margin: auto">
        <tr>
            <th>ID</th>
            <th>用户</th>
            <th>内容</th>
            <th>发布时间</th>
        </tr>
        <?php foreach ($message as $m): ?>
            <tr>
                <td><?php echo $m['id']; ?></td>
                <td><?php echo $m['name']; ?></td>
                <td><?php echo $m['content']; ?></td>
                <td><?php echo $m['time']; ?></td>
            </tr>
        <?php endforeach; ?>
            <?php echo "当前设定的页码：",$page; ?>
            <br>
            <a href="?page=<?php if($page!=1){echo $page-1;}else{echo 1;}?>">上一页   </a>
        <?php for($x=1;$x<=$totalPage;$x++): ?>
            <a href="?page=<?php echo $x;?>"><?php echo "  ".$x."  ";?></a>
        <?php endfor; ?>
            <a href="?page=<?php if($page!=$totalPage){echo $page+1;}else{echo $totalPage;}?>">   下一页</a>

    </table>
<!--    isset($page) and-->

</div>